<?php
namespace app\common\model;
use think\Model;
class AuthGroupAccess extends Model{
	public function member(){
        // 用户HAS ONE档案关联
        return $this->hasOne('Member','user_id');
    }
	public function user(){
        // 用户HAS ONE档案关联
        return $this->hasOne('User','user_id');
    }	
	public function group(){
        // 用户HAS ONE档案关联
        return $this->hasOne('AuthGroup','id');
    }	
}
// +----------------------------------------------------------------------
// | ZanPianCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.zanpiancms.com All rights reserved.
// +----------------------------------------------------------------------
// | BBS:  <http://www.zanpiancms.cc>
// +----------------------------------------------------------------------
?>